#include<iostream>
#include<string>
#include<vector>
#include<boost/algorithm/string.hpp>
using namespace std;
int main()
{
    string target="AAAAAAAAAAAAAAAAAAAAAA\3\3\3\3\3\3BBBBBBBBBBBBBBBBBB\3eqe\3";
    vector<string> result;
    boost::split(result,target,boost::is_any_of("\3"),boost::token_compress_on);

    for(auto& s:result)
    {
        cout<<s<<endl;
    }
    return 0;
}